function [bsdata, indices]=bs_choose(data,B,w,type)
if type == 1%i.i.d.
    [bsdata, indices] = block_bootstrap(data,B,1);
elseif type == 2%circular
    [bsdata, indices] = block_bootstrap(data,B,w);
elseif type == 3%stationary
    [bsdata, indices] = stationary_bootstrap(data,B,w); 
end